@charset "UTF-8";

//
// @copyright        2017 opencart.cn - All Rights Reserved
// @link             http://www.guangdawangluo.com
// @author           Sam Chen <sam.chen@opencart.cn>
// @created          2017-12-05 17:11:30
// @modified         2018-06-22 09:41:46
//

$control_height: 34px;

.quick-checkout-wrapper {
    margin-bottom: 80px;

    .checkout-section {
        margin-bottom:20px;
        padding: 8px;
        position: relative;
        border: 1px solid #d8d8d8;

        &> h2 {
            padding: 7px 7px;
            margin: 0 0 10px 0;
            font-size: 16px;
            font-weight: bold;
            background-color: #eee;
            color: #333;
            line-height:22px;

            .icon-address{
                display: inline-block;
                background-image: url("/catalog/view/theme/default/image/icon_address@2x.png");
                background-size: 100%;
                width:22px;
                height:22px;
                vertical-align:top;
            }

            .icon-mainfast{
                display: inline-block;
                background-image: url("/catalog/view/theme/default/image/icon_Order@2x.png");
                background-size: 100%;
                width:22px;
                height:22px;
                vertical-align:top;
            }

            .icon-comment{
                display: inline-block;
                background-image: url("/catalog/view/theme/default/image/icon_Consultation@2x.png");
                background-size: 100%;
                width:22px;
                height:22px;
                vertical-align:top;
            }


        }

        legend {
            font-size: 14px;
        }
    }

    #login-section, #payment-address-section, #shipping-address-section {
        .form-group {
            overflow: hidden;
            display: block;
            clear: both;

            label.control-label {
                display: block;
                float: left;
                width: 35%;
                padding: 0;
                margin-bottom: 0;
                min-height: $control_height;
                line-height: $control_height;
            }

            input, select {
                width: 65%;
                float: left;
            }
        }

        .shipping-address-section-form{
            margin:24px 16px;

            & > .radio{
                margin-bottom: 16px;
                margin-top: 16px;
                input{
                    display: none;
                    &:checked + span.radio-on::after{
                        content: '';
                        display: block;
                        width:8px;
                        height:8px;
                        background: #333333;
                        margin: 3px auto;
                        border-radius:50%;
                    }
                }
                label{
                    font-weight:bold;
                    font-size: 14px;
                    position: relative;
                    padding-left: 20px;

                    span.radio-on{
                        position: absolute;
                        left: 0;
                        top: 2px;
                        vertical-align: middle;
                        content: '';
                        display: inline-block;
                        width:16px;
                        height:16px;
                        border:1px solid rgba(51,51,51,1);
                        border-radius:50%;
                    }
                }


            }
        }
    }

    #shipping-address-section {
        .form-group {
            .col-sm-10 {
                float: left;
                width: 65%;
                padding: 0;

                input, select {
                    width: 100%;
                    float: none;
                }
            }
        }
    }

    #payment-confirm-wrapper {
        // padding: $gutter;
        // background-color: #fff;

        .buttons, #button-confirm {
            display: none !important;
            // cursor: not-allowed !important;
        }
    }

    .loading-mask {
        z-index: 1000;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 48px;
        text-align: center;
        i{
            color: #ccc;
            position: absolute;
            top: 50%;
            transform: translate(0 -50%);
        }
    }

    @media (min-width: 992px) {
        .left-section-wrapper {
            #shipping-new {
                .form-group {
                    margin-bottom: 10px;
                    label {
                        min-height: 24px;
                        line-height: 24px;
                        width: 100%;
                        font-weight: bold;
                        padding-top: 0 !important;
                        margin-bottom: 5px !important;
                        text-align: left !important;
                    }
                    .col-sm-10 {
                        width: 100%;
                    }
                }
            }
        }
    }

    .left-section-wrapper, .right-section-wrapper {
        & > .loading-mask {
            left: $gutter;
            right: $gutter;
        }
    }

    .text-danger {
        padding: 0 5px;
        margin-left: 5px;
        background: #a94442;
        color: #fff;
        display: inline-block;
    }

    #button-submit {
        padding: 10px 12px;
        font-size: 16px;
        background: red;
    }

    #comment-section{
        .comment-section-textarea{
            //margin-left: 10px;
            //margin-right: 10px;
            //margin-top: 20px;
        }
    }

    #cart-section{
        .cart-section-table{
            margin-left: 10px;
            margin-right: 10px;
            margin-top: 20px;
        }
        .table{
            > tbody > tr > td {
                vertical-align: top;
            }
            .information {
                width: 50%;
                .thumb {
                    float: left;
                    width: 80px;
                    height: 80px;
                    img{
                        width: 100%;
                    }
                }
                .name {
                    text-align: left;
                    margin-left: 102px;
                    & > a {
                        color: #333333;
                        height: 38px;
                        font-size: 14px;
                        line-height: 19px;
                    }
                    .options {
                        & > small {
                            color: #B2B2B2;
                            display: block;
                            font-size: 14px;
                        }
                        margin-bottom: 0;
                    }
                }
            }
            .model{
                width: 12%;
            }
            .quantity{
                width: 14%;
            }
            .price{
                width: 12.5%;
            }

            td.information{
                padding-top: 17px;
                vertical-align: top;
            }

            td.price,
            td.total,
            td.quantity,
            td.model{
                padding-top: 27px;
                line-height: 20px;
            }

        }
    }

    #agree-section{
        text-align: right;
        font-size:14px;
    }

    #button-submit{
        width:182px;
        height:50px;
        background:#333333;
        box-sizing: content-box;
        font-size:18px;
        float: right;
        padding: 0;
    }

    #shipping-method-section{
        display: none;
        &> .shipping-method-section-inner{
            float: right;
            label{
                height:19px;
                font-size:14px;
                font-weight:bold;
                line-height:19px;
            }
        }
    }

    #payment-method-section{
        padding-bottom: 12px;
        &> .shipping-method-section-inner{
            float: right;
            .radio{
                margin-bottom: 16px;
                margin-top: 16px;
                input{
                    display: none;
                    &:checked ~ span.radio-on::after{
                        content: '';
                        display: block;
                        width:8px;
                        height:8px;
                        background: #333333;
                        margin: 3px auto;
                        border-radius:50%;
                    }
                }
                label{
                    font-weight:bold;
                    font-size: 14px;
                    position: relative;
                    padding-left: 20px;

                    span.radio-on{
                        position: absolute;
                        left: -5px;
                        top: 3px;
                        vertical-align: middle;
                        content: '';
                        display: inline-block;
                        width:16px;
                        height:16px;
                        border:1px solid rgba(51,51,51,1);
                        border-radius:50%;
                        margin-right: 20px;
                    }

                    & > i{
                        display: inline-block;
                        width: 16px;
                        height: 16px;
                        vertical-align: middle;
                        background-size: 100%;
                        &.pp_express{
                            background-image: url("/catalog/view/theme/default/image/paypal@2x.png");
                        }
                        &.alipay{
                            background-image: url("/catalog/view/theme/default/image/zhifubao@2x.png");
                        }
                        &.wechat_pay{
                            background-image: url("/catalog/view/theme/default/image/weixin@2x.png");
                        }
                        &.cod{
                            background-image: url('/catalog/view/theme/default/image/icon_huodaofukuan@2x.png');
                        }
                    }
                }

            }
        }
    }
}


.quick-checkout-title{
    margin-top: 38px;
    margin-bottom: 24px;
    height:29px;
    font-size:22px;
    font-weight:bold;
    line-height:29px;
}

#quick-checkout-connect {
    .quick-checkout-connect-wrapper {

        .payment-title{
            height:21px;
            font-size:16px;
            line-height:21px;
            span{
                color: #F06767;
            }
        }

        .payment-form-container {
            display: inline-block;
        }

        form.payments{
            display: inline-block;
            input[type="radio"] {
                display: none;
            }

            .payments-checkbox{
                vertical-align: top;
                float: left;
                margin-bottom: 32px;
                margin-right: 34px;
                padding:0;
                position: relative;
                &.no-margin {
                    margin-right: 0;
                }
                &>label{
                    border:1px solid rgba(230,230,230,1);
                    cursor: pointer;
                    width:170px;
                    height:60px;
                    padding-left: 14px;
                    padding-top: 13px;
                    padding-bottom: 13px;
                    margin-bottom: 0 !important;
                    .icon{
                        display: table-cell;
                        width:34px;
                        height:34px;
                        background-size: 100%;
                        background-repeat: no-repeat;
                        &.wechat_pay{
                            background-image: url("/catalog/view/theme/default/image/icon_wechat_pay.svg");
                        }
                        &.alipay{
                            background-image: url("/catalog/view/theme/default/image/icon_alipay.svg");
                        }
                        &.cod{
                            background-image: url("/catalog/view/theme/default/image/icon_cod.svg");
                        }
                        &.pp_express{
                            background-image: url("/catalog/view/theme/default/image/icon_paypal.svg");
                        }
                    }
                }
                .text{
                    font-size:14px;
                    font-weight:400;
                    line-height:19px;
                    color:rgba(51,51,51,1);
                    height: 34px;
                    margin-left: 48px;
                    vertical-align: middle;
                    display: table-cell;
                    padding-left: 14px;
                }
                input[type="radio"]:checked + label{
                    border:none;
                    background-image: url("/catalog/view/theme/default/image/selected_payment.svg");
                    background-repeat: repeat;
                    background-size: 100%;

                }
            }
        }

        #payment-confirm-wrapper {
            //margin-top: $gutter * 2;
            .buttons {
                margin-top: 64px;
                #button-confirm{
                    height: 50px;
                    line-height: 50px;
                    font-size: 18px;
                    padding:0 40px;
                }
                .pull-right {
                    //float: none !important;
                    //text-align: center;
                }
            }
        }
    }
}


// 购物车部分
#checkout-cart {

    // 购物车商品选框
    .cart-selector {
        width: 20px;
        height: 100%;
        label {
            width: 20px;
            height: 20px;
            border: 1px solid #ccc;
            cursor: pointer;
        }
        input[type='checkbox'] {
            &:checked + label {
                &:before {
                    content: "";
                    position: absolute;
                    top: 3px;
                    left: 5px;
                    width: 7px;
                    height: 12px;
                    background-color: #333;
                    transform: rotateZ(36deg);
                }
                &:after {
                    content: "";
                    position: absolute;
                    top: 1px;
                    left: 5px;
                    width: 6px;
                    height: 10px;
                    background-color: #fff;
                    transform: rotateZ(36deg);
                }
            }
        }
    }

    .quantity-input-wrapper {
        position: relative;
        height: 60px;
        margin: 0;
        &>input{
            height: 60px;
        }
        a {
            right: 1px;
            position: absolute;
            background: #F6F6F6;
            width: 38px;
            height: 30px;
            font-size: 24px;
            text-align: center;
            line-height: 30px;
            color: #ccc;
            transition: all .3s 0s ease;
            &:hover {
                background: #ccc;
                color: $brand-secondary;
            }
            &.quantity-up {
                top: 1px;
            }
            &.quantity-down {
                bottom: 1px;
            }
        }
    }

    .table {
        > thead > tr > th {
            position: relative;
            &.checkall {
                cursor: pointer;
            }
        }
        > tbody > tr > td {
            position: relative;
            vertical-align: top;
            min-width: 40px;
        }
        .information {
            width: 44%;
            padding:12px 24px;
            .thumb {
                float: left;
                width: 80px;
                height: 80px;
                border:1px solid rgba(230,230,230,1);
                img{
                    width: 100%;
                }
            }
            .name {
                text-align: left;
                margin-left: 102px;
                & > a {
                    color: #333333;
                    height: 38px;
                    font-size: 14px;
                    line-height: 19px;
                }
                .options {
                    margin: 0;
                    & > small {
                        color: #B2B2B2;
                        display: block;
                        font-size: 14px;
                    }
                }
            }
        }
        .model{
            width: 9%;
            &{
            }
        }
        .quantity{
            width: 14%;
        }
        .price{
            width: 10%;
        }
        .total{
            width: 12%;
        }
        .operation{
            & > .remove{
                font-size: 30px;
                color:#F06767;
                cursor:pointer;
                vertical-align: middle;
            }
        }

        td.information{
            padding-top: 17px;
        }

        td.price,
        td.total,
        td.model
        {
            padding-top: 27px;
            div{
                vertical-align: middle;
                height: 60px;
                display: inline-block;
                white-space: nowrap;
                line-height: 60px;
                max-width: 130px;
                text-overflow: ellipsis;
                overflow: hidden;
            }
        }
        td.operation,
        td.quantity{
            padding-top: 27px;
            line-height: 60px;
        }
    }

    .checkout > a{
        width:150px;
        height:56px;
        font-size:22px;
        font-weight:400;
        padding: 0;
        line-height: 56px;
        box-sizing: content-box;
        border: none;
    }
    padding-bottom: 124px;


    #accordion{
        margin-top: 10px;
        .panel-body{
            padding:30px;
            label{
                font-weight: normal;
                line-height: 30px;
                text-align: right;
            }
        }
        .panel-title{
            a{
                small{
                    color: $brand-secondary;
                }
            }
        }
        #collapse-shipping{
            .panel-body{
                padding-left:0;
                padding-right: 0;
            }
        }
        #collapse-shipping-form{
            .collapse-shipping-form-item{
                margin-right: 0;
                width: 36%;
                float: left;
                >label{
                    line-height: 30px;
                    float: left;
                    width: 100px;
                    text-align: right;
                    font-weight: normal;
                    margin-bottom: 0;
                }
                > div{
                    margin-left: 110px;
                    margin-right: 0;
                    > select{
                        width:100%;
                        height:30px;
                        border:1px solid #E6E6E6;
                        padding-top: 0;
                        padding-bottom: 0;
                    }
                    > input{
                        width:100%;
                        height:30px;
                        border:1px solid #E6E6E6;
                    }
                }
                &:last-child{
                    width: 22%;
                }
            }
        }
    }

}



/**
 总计列表
 */
#total{
    .total-list{
        padding-left: 0;
        list-style: none;
        float: right;
        font-size:16px;
        .total-list-item{
            height: 36px;
            line-height: 36px;
            .total-list-item-right{
                display: inline-block;
                text-align: left;
            }
            .total-list-item-left{
                display: inline-block;
                width: 200px;
                text-align: right;
                padding-right: 10px;
            }
            &:last-child > .total-list-item-right{
                color: $brand-primary;
                font-weight: bold;
                font-size: 22px;
            }
        }
    }
    padding-bottom: 12px;
}

#checkout-cart-empty{
    .no-items{
        padding-top: 40px;
        height: 560px;
        &>img{
            width:162px;
        }
        .no-items-tips{
            font-size:20px;
            &>small{
                font-size: 16px;
            }
            padding-bottom: 20px;
        }
        &>a{
            height:40px;
            font-size:18px;
            border: none;
        }
    }
}


@media (max-width: 768px) {
    #checkout-cart {
        .product-name {
            white-space: inherit;

            a.name {
                width: 150px;
                display: block;
            }
        }
    }
}

@media (min-width: 1200px) {
    #checkout-checkout,
    #checkout-cart{
        width: 1200px;
        padding-left: 0;
        padding-right: 0;

    }
}